#include "main.h"

#define SW_NTC     P13
#define SW_NTC_ON  (bit)1
#define SW_NTC_OFF (bit)0

float NTC_Voltage = 0;

void main()
{
	Hardware_Init.Sys_Init();
	while(1)
	{
		SW_NTC = SW_NTC_ON;
		_nop_();
		ADC.ADC_Value = ADC.ADC_Filter_Result();
		
		NTC_Voltage = (3.3*ADC.ADC_Value)/1024;
		
		printf("The ADC Value is:%d\r\n",ADC.ADC_Value);
		printf("The NTC Voltage is:%.2fV\r\n",NTC_Voltage);
		Public.Delay_ms(1000);
	}
}